//
//  GQJBoundsFrameViewController.m
//  TotalDemo
//
//  Created by gujian on 16/9/5.
//  Copyright © 2016年 gujian. All rights reserved.
//

#import "GQJBoundsFrameViewController.h"

@interface GQJBoundsFrameViewController ()

@end

@implementation GQJBoundsFrameViewController

- (void)viewDidLoad {
    [super viewDidLoad];


    UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(20, 20, 200, 200)];
    NSLog(@"before alter bounds center:%@",NSStringFromCGPoint(view1.center));
    view1.bounds = CGRectMake(0, 0, 110, 110);
    NSLog(@"after alter bounds center:%@",NSStringFromCGPoint(view1.center));
    view1.backgroundColor = [UIColor redColor];
    [self.view addSubview:view1];
    
    UIView *view2 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
    view2.backgroundColor = [UIColor yellowColor];
    [view1 addSubview:view2];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
